/**
 * Created by Administrator on 2015/11/24.
 */
var fs = require('fs');
var Q = require('q');
fs.readFile('./1','utf8',function(err,data){//open encoding utf8 or utf-8 is the same
    if(err) throw err;
    console.log(data);
});
console.log('++++++++++++++++++++');
var fs_readFile = Q.denodeify(fs.readFile);
var promise = fs_readFile('./1','utf8');
promise.then(console.log,console.error);
